<%@ page contentType="text/html; charset=gb2312" language="java"%>
<%@ page language="java" import="java.util.*,control.database.*,java.sql.*"%>
<%
String ServiceNo="";
String ServiceName="";
String ID="";

if(request.getParameter("ID")!=null){
	ID=request.getParameter("ID");
}
if(request.getParameter("ServiceNo")!=null){
	ServiceNo=request.getParameter("ServiceNo");
}
if(request.getParameter("ServiceName")!=null){
	ServiceName=new String(request.getParameter("ServiceName").toString().getBytes("ISO8859_1"));
}

String sql="update dbo.CQ_Cmn_Services set ServiceNo='"+ServiceNo+"',ServiceName='"+ServiceName+"' where ID="+ID;
	DataBase db2 = new DataBase();
	db2.executeUpdate(sql);
	db2.closeStmt();
	db2.closeConn();
response.sendRedirect("Service_add_success.jsp?ID="+ID+"&flag=rest");
%>